package cn.netbox.spring.service.impl;

import cn.netbox.spring.dao.MyDao;
import cn.netbox.spring.pojo.Student;
import cn.netbox.spring.pojo.WXYStudent;
import cn.netbox.spring.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("wxyServiceImpl")
public class WXYServiceImpl implements MyService{
    @Autowired
    @Qualifier("wxyDaoImpl")
    private MyDao myDao;
    public void methodA() {
        System.out.println("调用Service方法A");
    }

    public void createStudent(Student student) {
         myDao.insertStudent(student);
    }


}
